<div class="sidebar box">
	<div class="sidebox widget">
			<h3 class="widget-title">搜索</h3>
			<form class="searchform" action="{:U(GROUP_NAME.'/List/search','','')}" method="post" action="#">
				<input type="text" name="s" value="请输入关键字" onFocus="this.value=''" onBlur="this.value='请输入关键字'"/>
			</form>
	</div>
	<div class="sidebox widget">
			<h3 class="widget-title">热门文章</h3>
			<ul class="post-list">
				<hot type="click">
				  	<li> 
						<div class="meta">
						    <h6><a href="{:U(GROUP_NAME.'/Show/index',array('id'=>$id))}">{$title}</a>({$click})</h6>
						    <em>{$time|Date="Y-m-d H:i",###}</em>
					    </div>
					  </li>
				</hot>
			</ul>
			
	</div>
  <div class="sidebox widget">
			<h3 class="widget-title">最新文章</h3>
			<ul class="post-list">
				<hot type="time">
				  	<li> 
						<div class="meta">
						    <h6><a href="{:U(GROUP_NAME.'/Show/index',array('id'=>$id))}">{$title}</a>({$click})</h6>
						    <em>{$time|Date="Y-m-d H:i",###}</em>
					    </div>
					  </li>
				</hot>
			</ul>
			
	</div>
	
	
	
<!-- 	<div class="sidebox widget">
		<h3 class="widget-title">Custom Text</h3>
		<div>Suspendisse eu odio quis elit ultrice commodo tempor eget arcu. Sedur aliquet posuere lectus aliquam iaculi. Curabitur a risus metus. In ut lorem nisl, et adipiscing sapien. Donec sed risus tristiq scelerisque. </div>
	</div> -->
	<style>
		.hotTab .box{
			padding: 2px;
			margin: 4px;
			display: inline-block;
		}
	</style>
	<tag></tag>
	<div class="sidebox widget">
		<h3 class="widget-title">热门标签</h3>
			<ul class="hotTab">
				<foreach name="tags" item="v">
				<div class="box">
					<a href="">{$v}</a>
				</div>
				</foreach>
			</li>
		</ul>
</div></div>
<script>
	$(function(){
		menu=document.getElementById('menu').getElementsByTagName('a');
		tag=document.getElementsByClassName('hotTab')[0].getElementsByTagName('a');
		for (var i =0; i <menu.length; i++) {
			for (var j = 0; j < tag.length; j++) {
				if(menu[i].innerHTML==tag[j].innerHTML)
					tag[j].href=menu[i].href;
			};
			
		};
	});
</script>